// 引入组件
import DistriIndex from '@/components/distri/index.vue'
import DistriMember from '@/components/distri/member.vue'
import DistriMoney from '@/components/distri/money.vue'


// 定义一个路由列表(子路由)
const list = [
    {
        path: 'index',
        name: 'DistriIndex',
        component: DistriIndex,
        meta: { IsLogin: true }
    },
    {
        path: 'member',
        name: 'DistriMember',
        component: DistriMember,
        meta: { IsLogin: true }
    },
    {
        path: 'money',
        name: 'DistriMoney',
        component: DistriMoney,
        meta: { IsLogin: true }
    },
]

// 父级的组件模板
const layout = {
    template: `<router-view />`
}

export default [
    {
        path: '/distri',      // 一级路由地址
        name: 'distri',
        component: layout,
        children: list
    }
]